home *** CD-ROM | disk | FTP | other *** search
/ My Neighborhood / My Neighborhood.iso / mac / MacFiles / Intro2.Dxr / 00078.ls < prev    next >
Encoding:
Text File  |  1997-11-18  |  1.8 KB  |  65 lines

  1. on exitFrame
  2.   global counter, morphsprite, tix, posneg, temploop
  3.   if tix < 8 then
  4.     set tix to tix + 1
  5.   else
  6.     if (the name of cast counter = "PGA.BMP") or (the name of cast counter = "PGB.BMP") or (the name of cast counter = "PGC.BMP") then
  7.       set tix to 0
  8.       set temp to random(3)
  9.       if temp = 1 then
  10.         if random(20) < 11 then
  11.           set posneg to -1
  12.         else
  13.           set posneg to 1
  14.         end if
  15.         if random(20) > 10 then
  16.           set morphsprite to 6
  17.         else
  18.           set morphsprite to 5
  19.         end if
  20.         if the name of cast the castNum of sprite morphsprite = "PGA.BMP" then
  21.           set counter to 1
  22.           set the castNum of sprite morphsprite to counter
  23.         else
  24.           if the name of cast the castNum of sprite morphsprite = "PGB.BMP" then
  25.             set counter to 24
  26.             set the castNum of sprite morphsprite to counter
  27.           else
  28.             if the name of cast the castNum of sprite morphsprite = "PGC.BMP" then
  29.               set counter to 49
  30.               set the castNum of sprite morphsprite to counter
  31.             end if
  32.           end if
  33.         end if
  34.         set tix to 41
  35.         set counter to counter + posneg
  36.         if counter > 73 then
  37.           set counter to 1
  38.         else
  39.           if counter = 0 then
  40.             set counter to 73
  41.           end if
  42.         end if
  43.         set the castNum of sprite morphsprite to counter
  44.       end if
  45.     else
  46.       set counter to counter + posneg
  47.       if counter > 73 then
  48.         set counter to 1
  49.       else
  50.         if counter = 0 then
  51.           set counter to 73
  52.         end if
  53.       end if
  54.       set the castNum of sprite morphsprite to counter
  55.     end if
  56.   end if
  57.   set temploop to temploop + 1
  58.   if temploop < 260 then
  59.     go(the frame)
  60.   end if
  61.   if the frameLabel = "mid" then
  62.     set temploop to 150
  63.   end if
  64. end
  65.